plugin translations not reflected in admin dashboard
plugin translations not reflected in admin dashboard
plugin translations not reflected in admin dashboard
I have the same issue on only one of the three wordpress sites managed by a multisite wordpress. I am not experienced with WordPress either, but I have managed to get uploads working by replacing if ( empty( $directory_cache ) ) { return; } by if ( empty( $directory_cache ) || !is_array($directory_cache) ) { return; … Read more
If you mean, how to change the link’s text, then you can change it when you register your taxonomy, by setting the back_to_items label to whatever text you like. Excerpt from the documentation: ‘back_to_items’ – the text displayed after a term has been updated for a link back to main index. Default is __( ‘← … Read more
The error message you see points to this part within the wp-login.php file: setcookie( TEST_COOKIE, ‘WP Cookie check’, 0, SITECOOKIEPATH, COOKIE_DOMAIN, $secure ); to its “path”, which is the 4th parameter: SITECOOKIEPATH If you check how that constant is defined, that is: define( ‘SITECOOKIEPATH’, preg_replace( ‘|https?://[^/]+|i’, ”, get_option( ‘siteurl’ ) . “https://wordpress.stackexchange.com/” ) ); meaning … Read more
You shouldn’t need to hook anywhere in particular, simply output your heading at the start of your settings page callback and WP should position admin notices appropriately after your heading (there’s some logic written into the js/jquery). For example i have lines like this at the start of various plugin settings pages. <div class=”wrap”> <h1><?php … Read more
Am I using this hook incorrectly No, you’re not. is there another way to get the ID? Yes, try this: function add_menu_field( $item_id, $item, $depth, $args, $id ) { $id2 = 0; if ( ! $id && isset( $_GET[‘menu’] ) && $_GET[‘menu’] ) { $id2 = absint( $_GET[‘menu’] ); } elseif ( ! $id && … Read more
Not possible unless using isolated block editor, based on a reply from one of the WordPress developers which was really helpful.
Prevent posts from being published if the ‘Uncategorized’-category or no category is selected
First of all I am a careful (maybe paranoid) guy. I tried to login into a WordPress account few days ago and didn´t noticed it was the “Admin” login. I even notice that I can login via Twitch … but that was too late! If it’s not your account you should notify them! If you … Read more
Why are you not using the built-in enqueue_script function? Simply put your custom jQuery code into a file called custom.js, save it into your plugin or theme folder, then enqueue it with jQuery as a dependency: <?php function custom_scripts() { if (is_admin()){ wp_enqueue_script( ‘customjs’, get_template_directory_uri() . ‘/js/custom.js’, array(‘jquery’) ); } } add_action(‘wp_enqueue_scripts’, ‘custom_scripts’); You’ll need … Read more