PHP code example of undefinedfr / linky

1. Go to this page and download the library: Download undefinedfr/linky library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

undefinedfr / linky example snippets


function on_linky_after_construct() {
    // Do something
}
add_action( 'linky_after_construct', 'on_linky_after_construct', 10, 1 );

function on_linky_install() {
    // Do something
}
add_action( 'linky_install', 'on_linky_install', 10, 1 );

function on_linky_uninstall() {
    // Do something
}
add_action( 'linky_uninstall', 'on_linky_uninstall', 10, 1 );

function on_linky_before_admin_enqueue() {
    // Do something
}
add_action( 'linky_before_admin_enqueue', 'on_linky_before_admin_enqueue', 10, 1 );

function on_linky_after_admin_enqueue() {
    // Do something
}
add_action( 'linky_after_admin_enqueue', 'on_linky_after_admin_enqueue', 10, 1 );

function on_linky_before_enqueue() {
    // Do something
}
add_action( 'linky_before_enqueue', 'on_linky_before_enqueue', 10, 1 );

function on_linky_after_enqueue() {
    // Do something
}
add_action( 'linky_after_enqueue', 'on_linky_after_enqueue', 10, 1 );

function on_linky_menu_page_capalibilty( $capabilty ) {
    return $capabilty;
}
add_filter( 'linky_menu_page_capalibilty', 'on_linky_menu_page_capalibilty', 10, 1 );

function on_linky_submenu_appareance_page_capalibilty( $capabilty ) {
    return $capabilty;
}
add_filter( 'linky_submenu_appareance_page_capalibilty', 'on_linky_submenu_appareance_page_capalibilty', 10, 1 );

function on_linky_submenu_social_page_capalibilty( $capabilty ) {
    return $capabilty;
}
add_filter( 'linky_submenu_social_page_capalibilty', 'on_linky_submenu_social_page_capalibilty', 10, 1 );

function on_linky_submenu_links_page_capalibilty( $capabilty ) {
    return $capabilty;
}
add_filter( 'linky_submenu_links_page_capalibilty', 'on_linky_submenu_links_page_capalibilty', 10, 1 );

function on_linky_submenu_themes_page_capalibilty( $capabilty ) {
    return $capabilty;
}
add_filter( 'linky_submenu_themes_page_capalibilty', 'on_linky_submenu_themes_page_capalibilty', 10, 1 );

function on_linky_menu_icon( $menu_icon_path ) {
    return get_template_directory_uri() . '/assets/images/menu.svg';
}
add_filter( 'linky_menu_icon', 'on_linky_menu_icon', 10, 1 );

function on_linky_header_title( $title ) {
    return __('Welcome');
}
add_filter( 'linky_header_title', 'on_linky_header_title', 10, 1 );

function on_linky_avatar_image_size( $meta ) {
    return $meta;
}
add_filter( 'linky_yoast_meta_wpseo_metadesc', 'on_linky_yoast_meta_wpseo_metadesc', 10, 1 );