Plugin Settings
Custom plugin URL
If the plugin is not physically installed in the WordPress plugin directory or otherwise embedded, the plugin may need to be given the appropriate URL for its location. This can be done via a filter.
Example
add_filter( 'acf_tablefield/settings/url', 'my_tablefield_settings_url' );
function my_tablefield_settings_url( $url ) {
return 'https://my.custom.com/plugin/url/advanced-custom-fields-table-field-pro/';
}
Filters
acf_tablefield/settings/{$name}
add_filter( 'acf_tablefield/settings/{$name}', function( $value ) {
return $value;
} );
Parameters
-
$value
- Type: (mixed) The settings value
Settings
Name | Type | Added | Description |
---|---|---|---|
url
|
string | 1.0.0 | URL to plugin folder including trailing slash. Defaults to plugin_dir_url() |