Advertisement
DidouS

20220920-FB-Add Photo as Alias module Image

Sep 20th, 2022
774
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. add_action( 'init' , 'fl20220920_image_module' );
  2.  
  3. function fl20220920_image_module() {
  4.     if ( !class_exists( 'FLBuilder' ) ) return;
  5.     /**
  6.      * Add the image module as an alias module for the photo module
  7.      */
  8.     \FLBuilder::register_module_alias( 'image-module', array(
  9.         'module'      => 'photo',
  10.         'name'        => __( 'Image', 'textdomain' ),
  11.         'description' => __( 'Image, same as Photo', 'textdomain' ),
  12.         'icon'            => 'format-image.svg',       
  13.         'category'        => __( 'Basic', 'fl-builder' ),
  14.     ) );
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement