This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $groups = acf_get_local_field_groups(); | |
| $json = []; | |
| foreach ($groups as $group) { | |
| // Fetch the fields for the given group key | |
| $fields = acf_get_local_fields($group['key']); | |
| // Remove unecessary key value pair with key "ID" | |
| unset($group['ID']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UPDATE `--database-name--`.wp_users SET user_pass = md5('--type the new password here--') WHERE user_login = 'pixel'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function register_post_types() { | |
| //this is where you can register custom post types | |
| function custom_posts($name, $single, $menu_order, $meta_cap, $capability_type, $supports, $taxonomies) { | |
| register_post_type( $name, array( | |
| 'labels' => array( | |
| 'name' => _x( ucfirst($name), 'Post Type General Name', 'text_domain' ), | |
| 'singular_name' => _x( ucfirst($single), 'Post Type Singular Name', 'text_domain' ), | |
| 'menu_name' => __( ucfirst($name), 'text_domain' ), | |
| 'name_admin_bar' => __( ucfirst($name), 'text_domain' ), | |
| ), |
OlderNewer