ACF: Author

// ACF custom variables $knowsabout = get_field( ‘author_knowsabout’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout2 = get_field( ‘author_knowsabout_2’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout3 = get_field( ‘author_knowsabout_3’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout4 = get_field( ‘author_knowsabout_4’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout5 = get_field( ‘author_knowsabout_5’,…Continue reading

FC – Deshabilitar blog

add_action(‘init’, function () { global $wp_post_types; if (isset($wp_post_types[‘post’])) { $wp_post_types[‘post’]->capabilities = []; $wp_post_types[‘post’]->map_meta_cap = false; } register_taxonomy(‘post_category’, []); register_taxonomy(‘post_tag’, []); }); add_action(‘widgets_init’, function () { unregister_widget(‘WP_Widget_Recent_Posts’); }); add_action(‘admin_bar_menu’, function ($wp_admin_bar) { //$wp_admin_bar->remove_node(‘new-post’); }, 999); add_action(‘admin_menu’, function () { remove_menu_page(‘edit.php’); remove_submenu_page(‘edit.php’,…Continue reading

FC – Disable comments

add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading

Extra Content

add_filter( ‘frm_filtered_lookup_options’, ‘change_lookup_options’, 10, 2 ); function change_lookup_options( $options, $args ) { if ( $args[‘field’]->id == 478 ) { // change 25 to the id of the field in the other form foreach ( $options as $k => $option )…Continue reading

Log – Two Fields Dynamic User

add_filter(‘frm_setup_new_fields_vars’, ‘customize_dfe’, 25, 2); function customize_dfe( $values, $field ) { if ( $field->id == 819 && !empty( $values[‘options’] ) ){//Replace 125 with the ID of your dynamic field $temp_values = $values; $temp_values[‘form_select’] = 478; //change 30 to the id of…Continue reading