replacing jquery google cdn with a new version dynamically
replacing jquery google cdn with a new version dynamically
replacing jquery google cdn with a new version dynamically
The code is fully functional and tested. Add this in functions.php and check. I am giving you an example using the checkbox in the add and edit for the category. function mytheme_custom_column( $columns ) { $columns[‘my_column’] = ‘My custom column’; return $columns; } add_filter( ‘manage_edit-category_columns’ , ‘mytheme_custom_column’ ); function mytheme_custom_column_fill( $content, $column_name, $term_id ) { … Read more
Are there Hooks for featured image popup?
Fixed, done a little bit different implementation of the problem fix, without hooks. TC.
Replace this line: if ($old_status != ‘draft’ || $new_status != ‘publish’) { with: if ( $post->post_type != ‘post’ || $new_status != ‘publish’ || $old_status != ‘auto-draft’ ) { You want to run your code on post transition from auto-draft to publish, which will occur once only, when your post is created. UPDATE The problem is … Read more
In your class, your function is called ‘public function setOption()’ not setOptionS . Check your error log for this kind of issues. Also in your code I don’t see the function ‘socialShareOptions’ actually being called anywhere.
If this is in functions.php, then you don’t need a hook for this at all, because the functions.php file is loaded right where you want it. So just unwrap this and move it out of a function call altogether; i.e., still in your functions.php, but not attached to any specific hook. Or, use the after_setup_theme … Read more
WP_mail() Issue. Duplicate emails if $_GET[‘A’] == email
You could do something like this to see where it was called from: add_filter(“get_the_archive_title”, function($val) { $backtrace = debug_backtrace(); foreach($backtrace as $level) { if(array_key_exists(“file”, $level) && preg_match(“!that-file\.php$!”, $level[“file”]) && array_key_exists(“function”, $level) && $level[“function”] == “get_the_archive_title” ) { return “works: $val”; } } return “test: $val”; }, 10, 1); You’ll have to adapt the regexp (“that-file.php”) … Read more
Fatal error when using array_diff() function inside of wp_update_nav_menu hook?