FakerPress icon
Developer Tools

FakerPress hooks reference

  • By Gustavo Bordoni
  • v0.10.2 New
  • Updated

FakerPress 0.10.2 has 11 actions and 57 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when FakerPress fires an action
add_action( 'fakerpress_template_after_include', function( $file, $name, $object ) {
	// Your code runs here.
}, 10, 3 );

// Change a value FakerPress is about to use
add_filter( 'fakerpress_asset_enqueue', function( $enqueue, $asset ) {
	// Change $enqueue here.
	return $enqueue;
}, 10, 2 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • src/FakerPress/Utils/Assets.php line 219
    /**
     * Allows developers to hook-in and prevent an asset from been loaded.
     */
    apply_filters( 'fakerpress_asset_enqueue', $enqueue, $asset );
  • src/FakerPress/Utils/Assets.php line 229
    /**
     * Allows developers to hook-in and prevent an asset from been loaded
     */
    apply_filters( "fakerpress_asset_enqueue_{$asset->slug}", $enqueue, $asset );
  • src/FakerPress/Utils/Assets.php line 585
    /**
     * Filter an Asset loading variables.
     */
    apply_filters( 'fakerpress_asset_pre_register', $asset );
  • src/FakerPress/Utils/Assets.php line 417
    /**
     * Filters the resource URL
     */
    apply_filters( 'fakerpress_asset_resource_url', $url, $resource, $asset );
  • src/FakerPress/Utils/Assets.php line 544
    /**
     * Filter to change version number on assets.
     */
    apply_filters( 'fakerpress_asset_version', $asset->version, $asset );
  • src/functions/conditionals.php line 30
    /**
     * Provides an opportunity to modify strings that will be deemed to evaluate to
     * true.
     */
    apply_filters( 'fakerpress_is_truthy_strings', [ '1', 'enable', 'enabled', 'on', 'y', 'yes', 'true', ] );
  • src/FakerPress/REST/Controller.php line 112
    /**
     * Filter the list of REST endpoint classes to load.
     */
    apply_filters( 'fakerpress_rest_endpoint_classes', [ Endpoints\Documentation::class, Endpoints\Posts::class, Endpoints\Users::class, Endpoints\Terms::class, Endpoints\Comments::class, Endpoints\Attachments::class, ] );
  • src/FakerPress/Template.php line 571
    /**
     * Fires an Action after including the template file
     */
    do_action( 'fakerpress_template_after_include', $file, $name, $this );
  • src/FakerPress/Template.php line 587
    /**
     * Fires an Action for a given template name after including the template file
     */
    do_action( "fakerpress_template_after_include:{$hook_name}", $file, $name, $this );
  • src/FakerPress/Template.php line 526
    /**
     * Fires an Action before including the template file
     */
    do_action( 'fakerpress_template_before_include', $file, $name, $this );
  • src/FakerPress/Template.php line 542
    /**
     * Fires an Action for a given template name before including the template file
     */
    do_action( "fakerpress_template_before_include:{$hook_name}", $file, $name, $this );
  • src/FakerPress/Template.php line 289
    /**
     * Allows filtering the Local context
     */
    apply_filters( 'fakerpress_template_context', $context, $file, $name, $this );
  • src/FakerPress/Template.php line 222
    /**
     * Allows filtering the the getting of Context variables, also short circuiting
     * Following the same structure as WP Core
     */
    apply_filters( 'fakerpress_template_context_get', null, $index, $default, $is_local, $this );
  • src/FakerPress/Template.php line 462
    /**
     * A more Specific Filter that will include the template name
     */
    apply_filters( 'fakerpress_template_file', $file, $name, $this );
  • src/FakerPress/Template.php line 602
    /**
     * Allow users to filter the final HTML
     */
    apply_filters( 'fakerpress_template_html', $html, $file, $name, $this );
  • src/FakerPress/Template.php line 619
    /**
     * Allow users to filter the final HTML by the name
     */
    apply_filters( "fakerpress_template_html:{$hook_name}", $html, $file, $name, $this );
  • src/FakerPress/Template.php line 413
    /**
     * Allows filtering of the list of folders in which we will look for the
     * template given.
     */
    apply_filters( 'fakerpress_template_path_list', $folders, $this );
  • src/FakerPress/Template.php line 316
    /**
     * Allows filtering of the base path for templates
     */
    apply_filters( 'fakerpress_template_plugin_path', $path, $this );
  • src/FakerPress/Template.php line 344
    /**
     * Allows filtering of the base path for templates
     */
    apply_filters( 'fakerpress_template_public_namespace', $namespace, $this );
  • src/FakerPress/Template.php line 371
    /**
     * Allows filtering of the base path for templates
     */
    apply_filters( 'fakerpress_template_public_path', $path, $this );
  • src/FakerPress/Admin.php line 173
    /**
     * Allows the modification of the base title for FakerPress pages.
     */
    apply_filters( 'fakerpress.admin.title_base', __( '%s on FakerPress', 'fakerpress' ) );
  • src/FakerPress/Admin/View/Factory.php line 163
    /**
     * Allow third-party hooking of the admin view request level.
     */
    do_action( "fakerpress.admin.view.{$slug}.request", $view );
  • src/FakerPress/Admin/View/Factory.php line 154
    /**
     * Allow third-party hooking of the admin view request level.
     */
    do_action( 'fakerpress.admin.view.request', $view );
  • src/FakerPress/Admin/View/Factory.php line 65
    /**
     * Allows the filtering of the FakerPress available modules.
     */
    apply_filters( 'fakerpress.admin.views', $this->views );
  • src/FakerPress/Fields/Factory.php line 100
    /**
     * Allows the filtering of the FakerPress available modules.
     */
    apply_filters( 'fakerpress.fields', $default_types );
  • src/FakerPress/Module/Abstract_Module.php line 406
    /**
     * Allows the hooking into before the saving of a module specifically.
     */
    do_action( "fakerpress.module.{$slug}.after_save", $response, $reset, $this );
  • src/FakerPress/Module/Abstract_Module.php line 331
    /**
     * Allows the hooking into before the saving of a module specifically.
     */
    do_action( "fakerpress.module.{$slug}.before_save", $reset, $this );
  • src/FakerPress/Module/Abstract_Module.php line 162
    /**
     * Allows the modification of the default reset data set for a specific module.
     */
    apply_filters( "fakerpress.module.{$slug}.dependencies", $dependencies, $this );
  • src/FakerPress/Module/Abstract_Module.php line 98
    /**
     * String holding the flag used to mark items from this module as FakerPress
     * created.
     */
    apply_filters( "fakerpress.module.{$slug}.flag", $flag, self::class );
  • src/FakerPress/Module/Abstract_Module.php line 202
    /**
     * Allows the modification of the default reset data set for a specific module.
     */
    apply_filters( "fakerpress.module.{$slug}.provider_class", $provider, $this );
  • src/FakerPress/Module/Abstract_Module.php line 435
    /**
     * Allows the modification of the default reset data set for a specific module.
     */
    apply_filters( "fakerpress.module.{$slug}.reset_data", $data, $this );
  • src/FakerPress/Module/Abstract_Module.php line 380
    /**
     * Allows the modification of the response for a specific module.
     */
    apply_filters( "fakerpress.module.{$slug}.save", $response, $data, $reset, $this );
  • src/FakerPress/Module/Abstract_Module.php line 395
    /**
     * Allows the hooking into before the saving of a module.
     */
    do_action( 'fakerpress.module.after_save', $response, $reset, $this );
  • src/FakerPress/Module/Attachment.php line 216
    /**
     * Allows filtering of the attachment download_url timeout, which is here just
     * to prevent fakerpress timing out.
     */
    apply_filters( 'fakerpress.module.attachment.download_url_timeout', 10, $url, $post_parent_id );
  • src/FakerPress/Module/Abstract_Module.php line 321
    /**
     * Allows the hooking into before the saving of a module.
     */
    do_action( 'fakerpress.module.before_save', $reset, $this );
  • src/FakerPress/Module/Abstract_Module.php line 152
    /**
     * Allows the modification of the default provider class used.
     */
    apply_filters( 'fakerpress.module.dependencies', $dependencies, $this );
  • src/FakerPress/Module/Abstract_Module.php line 88
    /**
     * String holding the flag used to mark items from this module as FakerPress
     * created.
     */
    apply_filters( 'fakerpress.module.flag', $flag, self::class );
  • src/FakerPress/Module/Abstract_Module.php line 349
    /**
     * Allows us to prevent `_encloseme` and `_pingme` meta when generating Posts
     */
    apply_filters( 'fakerpress.module.generate.prevent_enclose_ping_meta', true );
  • src/FakerPress/Module/Meta.php line 201
    /**
     * Allow filtering for the Value of a specific meta value based on it's key
     */
    apply_filters( "fakerpress.module.meta.{$this->data['meta_key']}.value", $this->data['meta_value'], $type, $this );
  • src/FakerPress/Module/Meta.php line 190
    /**
     * Allow filtering for the value for a Meta
     */
    apply_filters( 'fakerpress.module.meta.value', $this->data['meta_value'], $this->data['meta_key'], $type, $this );
  • src/FakerPress/Module/Abstract_Module.php line 192
    /**
     * Allows the modification of the default provider class used.
     */
    apply_filters( 'fakerpress.module.provider_class', $provider, $this );
  • src/FakerPress/Module/Abstract_Module.php line 425
    /**
     * Allows the modification of the default reset data set.
     */
    apply_filters( 'fakerpress.module.reset_data', [], $this );
  • src/FakerPress/Module/Abstract_Module.php line 368
    /**
     * Allows the modification of the response for modules.
     */
    apply_filters( 'fakerpress.module.save', $response, $data, $reset, $this );
  • src/FakerPress/Module/Factory.php line 62
    /**
     * Allows the filtering of the FakerPress available modules.
     */
    apply_filters( 'fakerpress.modules', $this->modules );
  • src/FakerPress/Plugin.php line 161
    /**
     * Triggers an action for loading of functionality.
     */
    do_action( 'fakerpress.plugin_loaded' );
  • src/FakerPress/Admin/View/Post_View.php line 115
    /**
     * Filters the default meta rules pre-filled in the post generator for a post
     * type.
     */
    apply_filters( 'fakerpress.posts.default_meta', $default_meta, $pt->name );
  • src/FakerPress/Admin/View/Post_View.php line 88
    /**
     * Filters the default taxonomy rules pre-filled in the post generator.
     */
    apply_filters( 'fakerpress.posts.default_taxonomy', $default_taxonomy );
  • src/FakerPress/Admin.php line 88 · used in 2 places
    apply_filters( 'fakerpress.messages.allowed_html', [] );
  • src/FakerPress/Field.php line 829
    apply_filters( "{self::plugin}/fields/container", $container, $field );
  • src/FakerPress/Field.php line 832
    apply_filters( "{self::plugin}/fields/container-{$field->_type}", $container, $field );
  • src/FakerPress/Field.php line 828
    apply_filters( "{self::plugin}/fields/field", $field, $container );
  • src/FakerPress/Field.php line 831
    apply_filters( "{self::plugin}/fields/field-{$field->_type}", $field, $container );
  • src/FakerPress/Field.php line 628
    apply_filters( "{self::plugin}/fields/field-actions", $html, $container );
  • src/FakerPress/Field.php line 651
    apply_filters( "{self::plugin}/fields/field-description", $html, $container );
  • src/FakerPress/Field.php line 480
    apply_filters( "{self::plugin}/fields/field-end_container", $html, $container );
  • src/FakerPress/Field.php line 422
    apply_filters( "{self::plugin}/fields/field-end_table", $html, $container );
  • src/FakerPress/Field.php line 572
    apply_filters( "{self::plugin}/fields/field-end_wrap", $html, $container );
  • src/FakerPress/Field.php line 600
    apply_filters( "{self::plugin}/fields/field-label", $html, $container );
  • src/FakerPress/Field.php line 278
    apply_filters( "{self::plugin}/fields/field-output-{$this->type}", $field, $this );
  • src/FakerPress/Field.php line 458
    apply_filters( "{self::plugin}/fields/field-start_container", $html, $container );
  • src/FakerPress/Field.php line 401
    apply_filters( "{self::plugin}/fields/field-start_table", $html, $container );
  • src/FakerPress/Field.php line 539
    apply_filters( "{self::plugin}/fields/field-start_wrap", $html, $container );
  • src/FakerPress/Field.php line 2138
    apply_filters( "{self::plugin}/fields/meta_types", $types );
  • src/FakerPress/Field.php line 669
    apply_filters( "{self::plugin}/fields/valid_types", self::$valid_types );
  • src/FakerPress/Module/Abstract_Module.php line 109
    apply_filters( "fakerpress.module.{$slug}.amount_allowed", 15, $this );
  • src/FakerPress/Dates.php line 24
    apply_filters( 'fakerpress/date.get_intervals', [ [ 'id' => 'today', 'text' => esc_attr__( 'Today', 'fakerpress' ), 'min' => Chronos::today()->toDateString(), 'max' => Chronos::today()->toDateString(), ], [ 'id' => 'yesterday', 'text' => esc_attr__( 'Yesterday', 'fakerpress' ), 'min' => Chronos::yesterday()->toDateString(), 'max' => Chronos::yesterday()->toDateString(), ], [ 'id' => 'tomorrow', 'text' => esc_attr__( 'Tomorrow', 'fakerpress' ... );
  • src/FakerPress/Provider/WP_Post.php line 306
    apply_filters( 'fakerpress/provider/WP_Post/tax_input.ranges', [ 'category' => [ 1, 3 ], 'post_tag' => [ 0, 15 ], '__default' => [ 0, 3 ], ] );
  • src/FakerPress/Provider/WP_Post.php line 296
    apply_filters( 'fakerpress/provider/WP_Post/tax_input.rates', [ 'category' => 50, 'post_tag' => 45, '__default' => 35, ] );

Generated from FakerPress's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: