Search results for: admin

_MK - SECURITY - Disable XML-RPC-API

// Disable XML-RPC add_filter( 'xmlrpc_enabled', '__return_false' ); // Block access to xmlrpc.php via .htaccess equivalent (Apache…

<10

Post Shortcodes

estimated read time, breadcrumbs, related posts

Typography Enqueue

function typography_enqueue_styles() { // Enqueue Typeboost.css from Cloudflare CDN wp_enqueue_style('typeboost-css', 'https://cdnjs.cloudflare.com/ajax/libs/typeboost/1.0.0/typeboost.css', array(), '1.0.0'); // Enqueue webfontloader.js…

Redirect from Array

Setup redirect for multiple pages.

<10

修改WP Memory等參數

// 設定 WordPress 記憶體限制 define('WP_MEMORY_LIMIT', '256M'); define('WP_MAX_MEMORY_LIMIT', '512M'); // 設定 PHP 執行層的上傳限制 @ini_set('upload_max_filesize', '64M'); @ini_set('post_max_size', '64M');…

allow contributors

add_filter( 'optin_monster_api_menu_cap', function( $cap ) { return 'edit_posts'; } );

allow authors

add_filter( 'optin_monster_api_menu_cap', function( $cap ) { return 'publish_posts'; } );

allow editors

add_filter( 'optin_monster_api_menu_cap', function( $cap ) { return 'edit_pages'; } );

trigger monsterlink of an external link

jQuery(document).ready(function($){ // Change 'rt78pcbzrddo1y7w0yq3' to match your specific campaign slug var campaignSlug = 'rt78pcbzrddo1y7w0yq3'; // When…

1 50 51 52 53 54 126