Remove post image caption from post_excerpt();
Remove post image caption from post_excerpt();
Remove post image caption from post_excerpt();
YARRP related posts with custom post type and wp-graphql
Can I strip WordPress classes from blocks?
It seems like you could achieve this by just setting the “Blog pages show at most” setting from the dashboard: Settings -> Reading options. Alternatively, you could create a custom template for the specific category in question and then set the posts per page equal to however many posts you want to display and order … Read more
Block UI data table
save array of objects with update_option
Exporting CSV of users with custom user taxonomies out of WordPress
How to Allow Users to Select Recipients In a WordPress Comment section?
Really having to have this fixed, I used this not-so-elegant workaround that works perfectly. It is bound to the base-name I use for my blocks: add_filter(‘render_block_data’, function($parsed_block, $source_block, $parent_block) { if(strpos($parsed_block[‘blockName’], ‘my-base-name/’) !== false && isset($parsed_block[‘attrs’]) && is_array($parsed_block[‘attrs’])) { foreach($parsed_block[‘attrs’] as $key => $val) { if($val === true) { $parsed_block[‘attrs’][$key] = ‘1’; } elseif($val === … Read more
$user = wp_get_current_user(); if (!current_user_can(‘activate_plugins’)) { add_action(‘admin_head’, ‘removeCategories’, 100); function removeCategories() { echo “<style>#product_cat-23{display: none !important;}</style>”; } } It’s admin_head for admin UI.