Control Whether AIOSEO Flushes Output Buffer After Rewriting Title
add_filter( ‘aioseo_flush_output_buffer’, ‘__return_false’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘aioseo_flush_output_buffer’, ‘__return_false’ );Continue reading
add_filter( ‘aioseo_disable_title_rewrites’, ‘aioseo_disable_term_title_rewrites’ ); function aioseo_disable_term_title_rewrites( $disabled ) { if ( is_category() || is_tag() || is_tax() ) { return true; } return false; }Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
function mepr_change_invoice_bill_to( $invoice, $txn ) { $user = $txn->user(); // Get company custom field. // Replace ‘mepr_company_name’ with the custom field slug. $company = get_user_meta( $user->ID, ‘mepr_company_name’, true ); // Return company name if not empty $name = ( !empty(…Continue reading
function mepr_extend_renewal_grace_days( $days ) { return 1; } add_filter( ‘mepr_grace_expire_days’, ‘mepr_extend_renewal_grace_days’ );Continue reading