mwform_styles

mwform_styles

Hook Type: filter

See hook in core

Displaying hooks found in version: mw-wp-form.5.1.0

apply_filters('mwform_styles') is found 2 times:

  • /classes/controllers/class.admin.php line 35
    	 */
    	public function _add_meta_boxes() {
    		global $post;
    
    		$this->styles = apply_filters( 'mwform_styles', $this->styles );
    		$form_key     = MWF_Functions::get_form_key_from_form_id( $post->ID );
    		$Form_Fields  = MW_WP_Form_Form_Fields::instantiation( $form_key );
    		$form_fields  = $Form_Fields->get_form_fields();
    		foreach ( $form_fields as $form_field ) {
    			$form_field->add_tag_generator();
    		}
    
  • /classes/functions.php line 477
    		$url      = plugins_url( MWF_Config::NAME );
    		wp_enqueue_style( MWF_Config::NAME, $url . '/css/style.css' );
    
    		$style  = $Setting->get( 'style' );
    		$styles = apply_filters( 'mwform_styles', array() );
    		if ( is_array( $styles ) && isset( $styles[ $style ] ) ) {
    			$css = $styles[ $style ];
    			wp_enqueue_style( MWF_Config::NAME . '_style_' . $form_key, $css );
    		}
    
    		wp_enqueue_script( MWF_Config::NAME, $url . '/js/form.js', array( 'jquery' ), false, true );