register_activation_hook in mu-plugin not triggering

I have a class setup to run some database scripts on my mu-plugin.

function activate_mjmc_core() {  require_once plugin_dir_path( __FILE__ ) . 'includes/class-mjmc-core-activator.php';  Mjmc_Core_Activator::activate();  Mjmc_Core_Activator::mjmc_database_version();  Mjmc_Core_Activator::mjmc_companies_table();  Mjmc_Core_Activator::mjmc_locations_table();  Mjmc_Core_Activator::mjmc_companies_insert(); }  register_activation_hook( __FILE__, 'activate_mjmc_core' ); 

Now these work just fine when i use this as a normal plugin where i have to activate it.

But when i use this in my mu-plugins, all the other plugin functions work, it just doenst run the database functions listed above on activate. Is there something else i need to do on these database functions? or run this on another wordpress hook?


WordPress adding scaled images that don’t exist

I’m building a theme in _S and using native Gutenberg blocks.

I have the following code via my functions.php file to set my image sizes:

add_theme_support( 'post-thumbnails' ); add_image_size( 'carousel', 1366, 550, true ); add_image_size( 'hero', 1366, 400, true ); add_image_size( 'large-square', 392, 340, true );  add_image_size( 'medium-square', 279, 314, true ); add_image_size( 'small-square', 215, 170, true ); add_image_size( 'diagram', 650 );  add_image_size( 'full-width', 884 );  add_image_size( 'half', 430 );  add_image_size( 'third', 279 );  add_image_size( 'quarter', 203 ); 

I also have this code to remove the default image sizes:

function remove_default_image_sizes( $  sizes) {     unset( $  sizes['thumbnail']);     unset( $  sizes['medium']);     unset( $  sizes['medium_large']);     unset( $  sizes['large']);     return $  sizes; } add_filter('intermediate_image_sizes_advanced', 'remove_default_image_sizes'); 

When regenerating my thumbnails via WP CLI, images are being scaled up to 2048px. This size doesn’t exist.

I’m also noticing a suffix “scaled” being added to each generated image, like so:


I’ve not seen this suffix before.

Where could WordPress be getting these image sizes from? Does the “scaled” suffix have anything to do with it?

How to display “META” array in register_taxonomy

How do I get the “META” field to go off “META: []” for something filled in? I am using this code:

register_taxonomy( 'job_listing_category', 'job_listing', [             'labels' => [                 'name'              => _x( 'Categories', 'Category taxonomy labels', 'my-listing' ),                 'singular_name'     => _x( 'Category', 'Category taxonomy labels', 'my-listing' ),                 'menu_name'         => _x( 'Categories', 'Category taxonomy labels', 'my-listing' ),                 'search_items'      => _x( 'Search Categories', 'Category taxonomy labels', 'my-listing' ),                 'all_items'         => _x( 'All Categories', 'Category taxonomy labels', 'my-listing' ),                 'parent_item'       => _x( 'Parent Category', 'Category taxonomy labels', 'my-listing' ),                 'parent_item_colon' => _x( 'Parent Category:', 'Category taxonomy labels', 'my-listing' ),                 'edit_item'         => _x( 'Edit Category', 'Category taxonomy labels', 'my-listing' ),                 'update_item'       => _x( 'Update Category', 'Category taxonomy labels', 'my-listing' ),                 'add_new_item'      => _x( 'Add New Category', 'Category taxonomy labels', 'my-listing' ),                 'new_item_name'     => _x( 'New Category Name', 'Category taxonomy labels', 'my-listing' ),             ],             'rewrite' => [                 'slug' => $  permalink_structure['category_base'],                 'with_front'   => false,                 'hierarchical' => false,             ],             'hierarchical'          => true,             'update_count_callback' => '_update_post_term_count',             'show_ui'               => true,             'show_tagcloud'         => false,             'public'                => true,             'show_in_rest'          => true,         ] ); 

How to migrate production WordPress to Localhost

I am trying to migrate a production WordPress site to a localhost install on MacOS using MAMP pro. What steps do I need to preform to enable this.

I have the data base configured and connecting.

I am able to hit localhost:8888/readme.html and get served the WordPress readme from Apache.

Unfortunately If I hit http://localhost:8888 or http://localhost:8888/index.php I get a 301 redirect to http://localhost The port is dropped and nothing gets served.

I am unsure where this 301 is coming from and currently blocked on this

impreza portfolio display/view blank page

I have a strange problem. My site is in development currently. I have taken over from the previous developer, and I believe this was working for him (I think/hope).

We have a few portfolio pages, but I cannot view/display any of them. If I click on Preview for example, I get a blank page. Browser console shows no errors.

Pages and blog posts work perfectly.

I have enabled debugging, deleted cache, deactivated all plugins – still the same. And there is nothing in the log.

I am at lost of where to look next. Any pointer to what I should control or test will be very useful.


Looking for a fully customisable WP responsive theme to develop a small scale fiverr type site for voice artists [closed]

I’m new here, not totally wet behind the ears but in reality, a beginner. I am looking for a free, fully customisable WP theme to develop a fiverr type site for voice artists but on a much smaller scale. I’m thinking of limiting membership to 3000 to begin, including buyers and talent – if interest is shown.

I will need a lot of help as this is quite a bit to chew off but I’m determined. I just need a good starting point – a theme (I think), unless anyone has any other suggestions. It would need to be able to handle lots of uploading of mp4, mp3, jpeg, png, buying and selling with Paypal, Escrow etc.

Security is of utmost importance.

Anyone have any solid advice on which theme I could use that is user friendly? I am using XAMP.

Thank youin advance for any feedback!

All the best!

WooCommerece REST API Api not showing all subcategories by parent

I’m requesting to the following endpoint


and getting a response for the first 2 children my problem those children has also children (deeply nested here of categories as showing on the image below ), I need to show all subcategories under a specific parent os how I can do this? enter image description here

Is there a way to add a featured image for the product to show in the product listings, but display another image as the product image?

I want to show a different image of products listing on the home page of the site, not the featured image but when customers click on the products then it should show the featured image on the product page. The site is on woocoommerce is there any way to do this. Thanks