/** * Snippet Name: Custom excerpt for password protected pages * Snippet URL: https://wpcustoms.net/snippets/custom-excerpt-password-protected-pages/ */ function password_required_excerpt( $excerpt ) { if ( post_password_required() ) { $excerpt = ‘This is a private page to request the password please contact the site…Continue reading
/** * Plugin Name: AffiliateWP – Affiliate Area Custom Styling * Plugin URI: https://affiliatewp.com * Description: Adds custom CSS styling to the Affiliate Area * Author: Andrew Munro, Sumobi * Author URI: http://sumobi.com * Version: 1.0 */ function affwp_affiliate_area_styling() {…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
// Disable the Plugin and Theme Editor if ( ! defined( ‘DISALLOW_FILE_EDIT’ ) ) { define( ‘DISALLOW_FILE_EDIT’, true ); }Continue reading
add_filter(‘the_generator’, ‘__return_empty_string’);Continue reading
if ( ! function_exists( ‘wcv_add_vendor_id_col_data’ ) ) { /** * Add vendor id to CSV data * * @param array $row_data The row data. * @param int $vendor_id The vendor id. */ function wcv_add_vendor_id_col_data( $row_data, $vendor_id ) { if (…Continue reading
if ( ! function_exists( ‘wcv_log_commission_order_status’ ) ) { /** * Log commission when order status is ? * * @param array $order_statuses The order statuses. * @return array */ function wcv_log_commission_order_status( $order_statuses ) { $key = array_search( ‘processing’, $order_statuses, true…Continue reading
function ele_disable_page_title( $return ) { return false; } add_filter( ‘hello_elementor_page_title’, ‘ele_disable_page_title’ );Continue reading