Tag Info

New answers tagged

1

There is problem with the "wordpress-seo" permission so please following steps. There are two way 1) Upload from the wp-admin Step 1 -> Change the "wordpress-seo" permission or rename the "wordpress-seo" plugin to another Step 2 -> If you have change the permission then just upgrade the plugin and if you have rename the plugin dir then you need to ...


2

We can style the table with CSS and dashicons. Example: For our video category, we can use for example: .edit-php .wp-list-table tr.category-video td.post-title strong:before { content: "\f126"; color: #ccc; display: inline-block; width: 20px; height: 20px; margin: 0 4px; font-size: 20px; line-height: 20px; font-family: ...


0

To fix the error, you can do something like this: function new_modify_user_table_row( $val, $column_name, $user_id ) { $user = get_userdata( $user_id ); switch ($column_name) { case 'les-non-specialistes' : return get_the_author_meta( 'les-non-specialistes', $user_id ); break; case 'specialistes' : ...


0

Try using below code to remove administrator and editor option from drop down. Use editable_roles filter function wdm_user_role_dropdown($all_roles) { global $pagenow; if( current_user_can('editor') && $pagenow == 'users.php' ) { // if current user is editor AND current page is user's listing page ...


0

Here is another option to remove header and background (source): //Remove the custom options provided by the default twentyeleven theme. add_action( 'after_setup_theme','remove_twentyeleven_options', 100 ); function remove_twentyeleven_options() { remove_custom_background(); remove_custom_image_header(); remove_action('admin_menu', ...


1

You can try the map_meta_cap filter: /** * Uneditable posts/pages for editors */ add_filter( 'map_meta_cap', function ( $caps, $cap, $user_id, $args ) { // Edit to your needs: $post_ids = [123, 234, 345, 456]; // Uneditable posts $role = 'editor'; // Uneditable by this user role // Make given posts uneditable for the ...


3

Your AJAX add_action and associated callback function shouldn't be inside view-create-rooms.php, move it into your main plugin file. When an AJAX request is sent, you're making a new separate request to the server, so your submenu page will not be loaded and your AJAX action never gets added to the queue.


0

Your code is badly broken and it is going to be an awkward process to hack the styles in like you are trying to do. It looks like you are using some third part code but assuming that that code uses WP_List_Table as it probably should you can alter the CSS of the rows as they are generated: function alter_list_table_css_wpse_192010($classes) { if ...


0

I think you need to change 'Comments' to 'something' but it from admin side. Please follow steps: 1> Go to Appearance -> Editor in your WordPress dashboard (In the list of theme files, on the right, click on “Theme Functions” to open your functions.php file) 2> Enter the following code in your functions.php file: add_filter('genesis_title_comments', ...


0

I wasted quite a few hours on this and there is another reason that does not seem to be noted anywhere. You need to make sure that in settings > WordPress Address (URL) and settings > Site address (URL) that if one has www then the other also does and the other way round. Otherwsie it seems while you are browsing the site it is a different domain to the ...



Top 50 recent answers are included