>
Download This Plugin | |
Download Elegant Themes | |
Name | Jigsaw |
Version | 0.5 |
Author | Jared Novack + Upstatement |
Rating | 100 |
Last updated | 2014-10-26 06:44:00 |
Downloads |
109
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Jigsaw plugin added 37 bytes of resources to the Home page and 41 bytes of resources to the sample Post page.
Jigsaw plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Jigsaw plugin ads no tables to your Wordpress blog database.Simple ways to make admin customizations for WordPress. You know all that brain space you saved for memorizing hooks? Use it for something better. For example, you can...
Jigsaw::add_column($post_type, $column_label, $callback_function, $order = 10);
Jigsaw::add_column('slides', 'Preview', function($pid){
$data = array();
$data['post'] = new TimberPost($pid);
Timber::render('admin/slide-table-preview.twig', $data);
}, 5);
Jigsaw::add_column(array('slides', 'post'), 'Preview', function($pid){
$data = array();
$data['post'] = new TimberPost($pid);
Timber::render('admin/slide-table-preview.twig', $data);
});
Jigsaw::remove_column($post_types, $column_slug);
Jigsaw::remove_column('slides', 'author');
Jigsaw::remove_column(array('slides', 'post'), 'author');
Jigsaw::add_toolbar_item($label, $url_or_callback_function);
Jigsaw::add_toolbar_item('Clear Cache', function(){
$total_cache->flush_all();
});
Jigsaw::add_toolbar_group($label, $items);
$optionOne = new stdClass();
$optionOne->label = 'All Caches';
$optionOne->action = function(){
$total_cache->flush_all();
};
$optionTwo = new stdClass();
$optionTwo->label = 'Page Cache';
$optionTwo->action = function(){
$total_cache->flush_page_cache();
};
$optionThree = array('Home', 'http://localhost');
Jigsaw::add_toolbar_group('Clear Cache', array($optionOne, $optionTwo, $optionThree));
Jigsaw::show_notice($message, $level = 'updated');
Jigsaw::show_notice('Cache has been flushed', 'updated');
...or
Jigsaw::show_notice('Error flushing cache, is the plugin activated?', 'error');
Jigsaw::add_css($css_file);
Jigsaw::add_css('css/my-admin-style.css');