| | |
| | | exit; |
| | | } |
| | | |
| | | add_action('jvbDefineRegistrar', 'atat_flag'); |
| | | add_action('jvbDefineRegistrarFields', 'atat_flag_fields'); |
| | | add_action('jvbDefineRegistrar', 'aei_flag'); |
| | | add_action('jvbDefineRegistrarFields', 'aei_flag_fields'); |
| | | |
| | | add_action('plugins_loaded', 'atat_flag',3); |
| | | add_action('plugins_loaded', 'aei_flag',3); |
| | | //Add fields later so we can verify taxonomies/post types exist |
| | | add_action('plugins_loaded', 'atat_flag_fields', 4); |
| | | add_action('plugins_loaded', 'aei_flag_fields', 4); |
| | | |
| | | add_filter('atat_AgeSchemaDefault', 'atat_flag_schema'); |
| | | add_filter('atat_AgeMetaDefault', 'atat_flag_meta'); |
| | | add_filter('atat_AgeArchiveDefault', 'atat_flag_archive'); |
| | | add_filter('aei_AgeSchemaDefault', 'aei_flag_schema'); |
| | | add_filter('aei_AgeMetaDefault', 'aei_flag_meta'); |
| | | add_filter('aei_AgeArchiveDefault', 'aei_flag_archive'); |
| | | |
| | | function atat_flag(){ |
| | | function aei_flag(){ |
| | | if (!class_exists('JVBase\registrar\Registrar')) { |
| | | return; |
| | | } |
| | |
| | | |
| | | } |
| | | |
| | | function atat_flag_fields():void |
| | | function aei_flag_fields():void |
| | | { |
| | | if (!class_exists('JVBase\registrar\Registrar')) { |
| | | return; |
| | |
| | | $fields->addCommon('keywords'); |
| | | } |
| | | |
| | | function atat_flag_schema():array |
| | | function aei_flag_schema():array |
| | | { |
| | | return [ |
| | | 'name' => 'How to Remove a {{name}} Old Tattoo - Before & After', |
| | | ]; |
| | | } |
| | | |
| | | function atat_flag_meta():array |
| | | function aei_flag_meta():array |
| | | { |
| | | return[ |
| | | 'name' => 'How to Remove a {{name}} Old Tattoo - Before & After', |
| | |
| | | ]; |
| | | } |
| | | |
| | | function atat_flag_archive(array $defaults):array |
| | | function aei_flag_archive(array $defaults):array |
| | | { |
| | | return array_merge($defaults, [ |
| | | 'name' => 'Removing {{term_name}} Old Tattoos – Before & After', |
| | | ]); |
| | | } |
| | | |
| | | function atat_flag_reference_schema(array $defaults):array |
| | | function aei_flag_reference_schema(array $defaults):array |
| | | { |
| | | return $defaults; |
| | | } |
| | | |
| | | // |
| | | //function atat_flags():array |
| | | //function aei_flags():array |
| | | //{ |
| | | // return [ |
| | | // 'singular' => 'Flag', |