Downloading file from wp-admin folder
Downloading file from wp-admin folder
Downloading file from wp-admin folder
Create customizer.js file and put the following script in the customizer.js file (function( $ ) { “use strict”; wp.customize( ‘tcx_link_color’, function( value ) { value.bind( function( to ) { $( ‘a’ ).css( ‘color’, to ); } ); }); })( jQuery ); And enqueue your customizer.js file by using wp_enqueue_script in your customizer.php file like this … Read more
Embedding code snippets in posts with indentation
Make Sure Your Functions, Slug and Callback Functions are Unique(Means Different from any other plugin or default WordPress). Also to save options use Settings API http://codex.wordpress.org/Function_Reference/register_setting <?php add_action(‘admin_menu’, ‘add_unique_custom_options’); function add_unique_custom_options() { add_options_page(‘Global Custom Options’, ‘Global Custom Options’, ‘manage_options’, ‘unique-functions’,’unique_custom_options’); } function unique_custom_options() { ?> <div class=”wrap”> <h2>Global Custom Options</h2> <form method=”post” action=”options.php”> <?php wp_nonce_field(‘update-options’) … Read more
change in_array(‘contributor’,$user->roles) to (in_array(‘contributor’,$user->roles) || in_array(‘administrator’,$user->roles))
Unable to render Admin Notices
It doesn’t seem to be a WP Network main object for getting data from other sites in the Network i.e. $wp_network->site1->get_post_type(‘events’). I solved this using the automatically generated RSS feed for the custom post type. The feed is available on /[custom post slug]/feed How to read the data from other WP sites WP comes with … Read more
It looks like your checkbox state is saved in $options[‘afi_checkbox_field_0’]. You can check this setting anywhere using the following code: $options = get_option( ‘afi_settings’ ); if ( ! empty( $options[‘afi_checkbox_field_0’] ) ) { // Checkbox checked } else { // Not checked }
I ended up filling my requirement using this PLUGIN.It Does what I really needed.
First, you have a blog on WordPress.com, so you can’t change any code to make this happen. To start with, is all of the “background” above correct? Yes. Is there a way to enable the reply buttons on all levels of comments? No, not on WordPress.com. If you self host a site, there are ways … Read more