How to find out whether a plugin is used in pages or posts?

You are looking for: is_plugin_active( string $plugin ) This function takes a string parameter that is the representation of the path to the plugin relative path in the plugins directory. So your practical implementation would look something like this: <?php if(is_plugin_active(‘elementor/elementor.php’) || is_plugin_active(‘woocommerce/woocommerce.php’)){ // Do something, remove scripts etc.. }

WP.org acceptable iframe alternative

Use JavaScript to poll for new data at an interval and update the DOM as it comes in. Downloading the complete log file at intervals would be very inefficient and quite likely consume a huge amount of bandwidth. Instead, use some server-side code to determine if new data is available and if so return that … Read more

Skewed / slanted button within elementor [closed]

What you need is to select Elementor buttons and add a simple custom CSS. Basically what you need to do is to skew the button with the negative value, and then skew the inner text element with the positive value. a.elementor-button { color: #fff; background: #000; border: 2px solid #000; font-weight: 700; text-align: center; text-decoration: … Read more

Is there a maximum length to a WordPress Page?

I don’t believe WordPress itself has a max size. However, the database behind it has a max length that the wp_posts.post_content field can be. If we look in wp-admin/includes/schema.php, we can see the SQL used to create the wp_posts table: CREATE TABLE $wpdb->posts ( ID bigint(20) unsigned NOT NULL auto_increment, post_author bigint(20) unsigned NOT NULL … Read more

register_activation_hook() not working as expected

WP needs all the required arguments – you skipped the one that tells it either a PHP file to use for output, or a function to run. From the Developer Site: /** * Register a custom menu page. */ function wpdocs_register_my_custom_menu_page(){ add_menu_page( __( ‘Custom Menu Title’, ‘textdomain’ ), ‘custom menu’, ‘manage_options’, ‘custompage’, ‘my_custom_menu_page’, plugins_url( ‘myplugin/images/icon.png’ … Read more

Simulating a wp page – wp page load sequence

So apparently I’m missing something in the wp loading sequence to display a page. Not exactly, or that your code is good in terms of parsing the request. And I don’t know why you need the add_query_arg() below, but this: public function Check_Incoming() { global $wp; $current_url = add_query_arg($wp->query_string, ”, home_url($wp->request)); $parsed = parse_url($current_url); if … Read more