add_filter( ‘aioseo_sitemap_images’, /** * Find new images inside the post content which has Elementor galleries. * It only works for self-hosted attachments. * * @param array $images The images already found. * @param object $post The post object * @return…Continue reading
function FN_Coach_wpdatatable ( $atts ) { // Initialize user_id to empty $user_id = ”; // Get the user ID from dropdown list post form if (isset($_POST[‘action’]) && $_POST[‘action’] === ‘Beecee_GroupLeader_user_do’) { $user_id = intval($_POST[‘user-id’]); } // Check if $user_id is…Continue reading
function export_tags_and_categories() { $terms = get_terms( array( ‘category’, ‘post_tag’ ), array( ‘hide_empty’ => false ) ); $output = fopen( ‘php://output’, ‘w’ ); fputcsv( $output, array( ‘Term ID’, ‘Name’, ‘Slug’, ‘Description’, ‘Taxonomy’ ) ); foreach ( $terms as $term ) {…Continue reading
add_filter(‘the_generator’, ‘__return_empty_string’);Continue reading
function FN_Coach_uo_dashboard( $atts ) { // Initialize user_id to empty $user_id = ”; // Get the user ID from dropdown list post form if (isset($_POST[‘action’]) && $_POST[‘action’] === ‘Beecee_GroupLeader_user_do’) { $user_id = intval($_POST[‘user-id’]); } // Check if $user_id is empty,…Continue reading
function FN_Coach_uo_dashboard( $atts ) { // Initialize user_id to empty $user_id = ”; // Get the user ID from dropdown list post form if (isset($_POST[‘action’]) && $_POST[‘action’] === ‘Beecee_GroupLeader_user_do’) { $user_id = intval($_POST[‘user-id’]); } // Check if $user_id is empty,…Continue reading
function FN_my_coach_entries_table_shortcode( $atts ) { // Initialize user_id to empty $user_id = ”; // Get the user ID from dropdown list post form if (isset($_POST[‘action’]) && $_POST[‘action’] === ‘Beecee_GroupLeader_user_do’) { $user_id = intval($_POST[‘user-id’]); } // Check if $user_id is empty,…Continue reading
function FN_my_coach_entries_table_shortcode( $atts ) { // Initialize user_id to empty $user_id = ”; // Get the user ID from dropdown list post form if (isset($_POST[‘action’]) && $_POST[‘action’] === ‘Beecee_GroupLeader_user_do’) { $user_id = intval($_POST[‘user-id’]); } // Check if $user_id is empty,…Continue reading
//Remove disable “Anyone can register” car se remet “tout seul” function disable_user_registration() { return false; } add_filter( ‘pre_option_users_can_register’, ‘disable_user_registration’ );Continue reading
// disable non admin editing of school profile field // h/t https://wp-qa.com/how-to-make-custom-field-in-wordpress-user-profile-read-only add_action(‘admin_init’, ‘wordplace_user_profile_fields_disable’); function wordplace_user_profile_fields_disable() { global $pagenow; // apply only to user profile or user edit pages if ($pagenow!==’profile.php’ && $pagenow!==’user-edit.php’) { return; } // do not change…Continue reading