Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
PUM_Integrations::settings_fields( array $fields = array() )
Adds additional settings to help better integrate with 3rd party plugins.
Description Description
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Parameters Parameters
- $fields
-
(Optional)
Default value: array()
Return Return
(array)
Source Source
File: classes/Integrations.php
public static function settings_fields( $fields = array() ) { foreach ( self::$integrations as $key => $integration ) { if ( ! ( $integration instanceof PUM_Interface_Integration_Settings ) || ! $integration->enabled() ) { continue; } // TODO LEFT OFF HERE. // TODO Could this be done via add_filter( 'pum_settings_fields', array( $integration, 'append_fields' ) ); // TODO If so, do we do it inside the __construct for the PUM_Abstract_Integration, or the Integration_{Provider} class itself. // TODO Alternatively do we simply loop over all enabled providers during self::init() and add the filters/hooks there instead. $fields = $integration->append_fields( $fields ); } return $fields; }
Expand full source code Collapse full source code View on Trac